/**
*
*/

/*
 * Copyright (C) 2001-2010 Jacek Sieka, arnetheduck on gmail point com
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */
#if !defined(MESSAGE_PANEL_H)
#define MESSAGE_PANEL_H

#pragma once

#include "WinUtil.h"
#include "ResourceLoader.h" // [+] InfinitySky. PNG Support from Apex 1.3.8.
#include "EmoticonsDlg.h"
#include "HIconWrapper.h"

class MessagePanel
{
	public:
		MessagePanel();
		~MessagePanel();
		LRESULT  InitPanel(HWND& hWnd, RECT &rcDefault, CEdit& ctrlMessage);
		LRESULT  UpdatePanel(CRect& rect);
		int GetPanelWidth();
		int GetEmotionMenuItemsCount()
		{
			return emoMenu.m_menuItems;
		}
		LRESULT onEmoticons(WORD /*wNotifyCode*/, WORD /*wID*/, HWND hWndCtl, BOOL& bHandled);
		LRESULT onEmoPackChange(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
		BOOL OnContextMenu(POINT& pt, WPARAM& wParam);
		
	private:
		CToolTipCtrl tooltip_;	// [+] SCALOlaz: add tooltips

		CEdit* m_ctrlMessage;
		
		CButton ctrlShowUsers;
		CButton ctrlEmoticons;
		CButton ctrlSendMessageBtn;
		CButton ctrlBoldBtn;
		CButton ctrlStrikeBtn;
		CButton ctrlItalicBtn;
		CButton ctrlUnderlineBtn;
		CComboBox ctrlSizeSel;
		CButton ctrlTransCodeBtn;
		CEmotionMenu emoMenu;
		HWND m_hWnd;
		
		/*static ExCImage hEmoticonBmp; // PNG Class.
		static ExCImage hSendMessageBmp; // PNG Class.
		static ExCImage hBold;
		static ExCImage hUndeline;
		static ExCImage hStrike;
		static ExCImage hItalic;
		static ExCImage hTransCode; [-] Sergey Shuhskanov*/
		
		static HIconWrapper hSendMessageIco;
		static HIconWrapper hEmoticonIco;
		static HIconWrapper hBoldIco;
		static HIconWrapper hUndelineIco;
		static HIconWrapper hStrikeIco;
		static HIconWrapper hItalicIco;
		static HIconWrapper hTransCodeIco;
		// [~] Sergey Shuhskanov
};


#endif //MESSAGE_PANEL_H